#ifndef __LOCKGUARD__
#define __LOCKGUARD__

#include <pthread.h>

class LockGuard
{
public:
    LockGuard(pthread_mutex_t *mutex)
        :_mutex(mutex)
    {}

    ~LockGuard()
    {}
private:
    pthread_mutex_t *_mutex;
};

#endif